<!-- Vue指令v-bind
1.作用：动态的设置html的标签属性→src url title...
2.语法：v-bind:属性名="表达式" -->
<div id="app">
    <img v-bind:src="imgUrl" v-bind:title="msg" width="100px" height="100px" alt="">
    <img :src="imgUrl" :title="msg" width="100px" height="100px" alt="">
</div>
<script src="https://cdn.jsdelivr.net/npm/vue@2.7.16/dist/vue.js"></script>
<script>
    const app = new Vue({
        el: "#app",
        data: {
            imgUrl: '../img/Snipaste_2024-06-07_15-58-23.png',
            msg: "风景"
        }
    })
</script>